package com.hhd.pdf.component.table;

import lombok.Getter;
import lombok.Setter;
import org.dom4j.Element;

import java.util.LinkedList;
import java.util.List;

@Getter
@Setter
public class TrVo {
    private final Element tr;
    TrType type;
    List<TdVo> tds = new LinkedList<>();

    public TrVo(Element tr) {
        this.tr = tr; 
    }

    public void addTd(TdVo tdVo) {
        tds.add(tdVo);
    }

    public enum TrType {
        head, body, foot
    }
}
